package com.eliauk.demo.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.eliauk.demo.utils.excel.converter.GenderConverter;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;

@Getter
@Setter
@EqualsAndHashCode
public class User implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    @ExcelProperty(value = "id")
    private Integer id;

    @ExcelProperty(value = "姓名")
    private String name;

    @ExcelProperty(value = "电话")
    private String phone;

    @ExcelProperty(value = "密码")
    private String password;

    @ExcelProperty(value = "生日")
    private Date birthday;

    @ExcelProperty(value = "性别",converter = GenderConverter.class)
    private Integer gender;
}
